let fs = require('fs');

let globalConfig = {};
let config = fs.readFileSync('./server.conf');
let configArr = config.toString().split('\r\n');
configArr.forEach(ele => {
  globalConfig[ele.split('=')[0]] = ele.split('=')[1].trim();
});

module.exports = globalConfig;